package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.ContractDto;
import com.zzyl.entity.Contract;
import com.zzyl.vo.ContractVo;

import java.time.LocalDateTime;
import java.util.List;

public interface ContractService {
    /**
     * 签约
     * @param contractDto
     * @return
     */
    ResponseResult sign(ContractDto contractDto);

    List<Contract> listAllContracts();

    void updateBatchById(List<Contract> updateList);

    List<ContractVo> listByMemberPhone(String phone);

    ContractVo getById(Long id);

    PageResponse<ContractVo> selectByPage(Integer pageNum, Integer pageSize, String contractNo, String elderName, Integer status, LocalDateTime localDateTime, LocalDateTime localDateTime1);

    void update(ContractDto contractDto);

    void deleteById(Long id);
}
